import request from '@/utils/request'
/**
 * 列表
 * @returns
 */
export function GetListAPI (query) {
    return request({
        url: '/system/mouldReceive/list',
        method: 'GET',
        params: query
    })
}



/**
 * 
 * @param {*} data 
 * 新增
 */
export function AddDataAPI (data) {
    return request({
        url: '/system/mouldReceive/add',
        method: 'POST',
        data
    })
}
/**
 * 回显
 */
export function GetViewAPI (data) {
    return request({
        url: '/system/mouldReceive/view/' + data,
        method: 'GET',


    })
}

/**
 * 修改
 * @param {*} data 
 * @returns 
 */
export function EditDataAPI (data) {
    return request({
        url: '/system/mouldReceive/edit',
        method: 'PUT',
        data
    })
}
/**
 * 领用确认
 * @param {*} data 
 * @returns 
 */
export function MouldConfirmAPI (data) {
    return request({
        url: '/system/mouldReceive/mouldConfirm',
        method: 'PUT',
        data
    })
}

// 删除
export function DelDataAPI (data) {
    return request({
        url: '/system/mouldReceive/remove/' + data,
        method: 'DELETE'
    })
}

/**
 * 安装地点树结构
 */
export function TreeListAPI () {
    return request({
        url: '/system/modeling/tree',
        method: 'GET',
    })
}


/**
 * 弹窗列表
 * @returns
 */
export function GetPopListAPI (params) {

    return request({
        url: '/system/mould/popList',
        method: 'GET',
        params
    })
}

/**
 * 领用回显
 */
export function MouldConfirmviwAPI (data) {
    return request({
        url: '/system/mouldReceive/getConfirmList',
        method: 'POST',
        data
    })
}